/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entidad;

/**
 *
 * @author kabad
 */
public class Estudiante {
private int idEstudiante;
private String matricula;
private Persona persona;

public void setIdEstudiante(int val) {
this.idEstudiante=val;
}
public int getIdEstudiante() {
return this.idEstudiante;
}
public void setMatricula(String val) {
this.matricula=val;
}
public String getMatricula() {
return this.matricula;
}
public void setPersona(Persona val) {
this.persona=val;
}
public Persona getPersona() {
return this.persona;
}

	@Override
	public String toString() {
		if (getPersona()!=null){
			return getPersona().toString();
		}
		return super.toString();
	}
 }